import React, { Component } from 'react';
import './style.scss'
class stateClass extends Component {
  state = { show:false }
  render() { 
    return (<>
    {/* {[this.state.show ? 'classA' : 'classC classD', 'calssB'].join(' ')} */}
        <div className={[this.state.show ? 'classC':'classB classA','classC'].join(' ')}>
          动态类名
        </div>
    </>  );
  }
}
 
export default stateClass;